import random
c = 0
z = int(input())
for a in range(z):
    x = random.randint(-100, 100)
    y = random.randint(-100, 100)
    if x >= 0 and y > 0:
        if x<=5 and y<=5:
            c+=1
    if x < 0 and y >= 0:
        if x>=-7 and y<=5:
            c+=1
    if x < 0 and y < 0:
        if x>=-7 and y>=-8:
            c+=1
    if x >= 0 and y < 0:
        if x<=5 and y>=-8:
            c+=1
print("Количество выстрелов:", z)
print("Количество попаданий:", c)
